package c.e.a.a.f.p.h;

import c.e.a.a.f.h;

/* compiled from: Uploader */
public final /* synthetic */ class g implements Runnable {
    public final l a;
    public final h b;
    public final int c;
    public final Runnable d;

    public g(l lVar, h hVar, int i, Runnable runnable) {
        this.a = lVar;
        this.b = hVar;
        this.c = i;
        this.d = runnable;
    }

    /* JADX WARNING: Missing exception handler attribute for start block: B:12:0x0044 */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Can't wrap try/catch for region: R(2:12|13) */
    /* JADX WARNING: Missing block: B:13:?, code skipped:
            r0.d.a(r1, r2 + 1);
     */
    /* JADX WARNING: Missing block: B:16:0x004e, code skipped:
            r3.run();
     */
    public void run() {
        /*
        r8 = this;
        r0 = r8.a;
        r1 = r8.b;
        r2 = r8.c;
        r3 = r8.d;
        r4 = 1;
        r5 = r0.f;	 Catch:{ a -> 0x0044 }
        r6 = r0.c;	 Catch:{ a -> 0x0044 }
        r6.getClass();	 Catch:{ a -> 0x0044 }
        r7 = new c.e.a.a.f.p.h.j;	 Catch:{ a -> 0x0044 }
        r7.m5444init(r6);	 Catch:{ a -> 0x0044 }
        r5.a(r7);	 Catch:{ a -> 0x0044 }
        r5 = r0.a;	 Catch:{ a -> 0x0044 }
        r6 = "connectivity";
        r5 = r5.getSystemService(r6);	 Catch:{ a -> 0x0044 }
        r5 = (android.net.ConnectivityManager) r5;	 Catch:{ a -> 0x0044 }
        r5 = r5.getActiveNetworkInfo();	 Catch:{ a -> 0x0044 }
        if (r5 == 0) goto L_0x0030;
    L_0x0028:
        r5 = r5.isConnected();	 Catch:{ a -> 0x0044 }
        if (r5 == 0) goto L_0x0030;
    L_0x002e:
        r5 = 1;
        goto L_0x0031;
    L_0x0030:
        r5 = 0;
    L_0x0031:
        if (r5 != 0) goto L_0x003e;
    L_0x0033:
        r5 = r0.f;	 Catch:{ a -> 0x0044 }
        r6 = new c.e.a.a.f.p.h.k;	 Catch:{ a -> 0x0044 }
        r6.m5445init(r0, r1, r2);	 Catch:{ a -> 0x0044 }
        r5.a(r6);	 Catch:{ a -> 0x0044 }
        goto L_0x004a;
    L_0x003e:
        r0.a(r1, r2);	 Catch:{ a -> 0x0044 }
        goto L_0x004a;
    L_0x0042:
        r0 = move-exception;
        goto L_0x004e;
    L_0x0044:
        r0 = r0.d;	 Catch:{ all -> 0x0042 }
        r2 = r2 + r4;
        r0.a(r1, r2);	 Catch:{ all -> 0x0042 }
    L_0x004a:
        r3.run();
        return;
    L_0x004e:
        r3.run();
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.a.f.p.h.g.run():void");
    }
}
